package com.movefeng.hexoblogadmin.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(exclude = {"createTime"})
public class Comment {

    private String id;
    private String content;
    private Date createTime;
    private String userName;
    private String articleUrl;
    private String parentName;
    private Integer auditStatus;
    private String email;

//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//        Comment comment = (Comment) o;
//        return Objects.equals(id, comment.id) && Objects.equals(content, comment.content) && Objects.equals(createTime, comment.createTime) && Objects.equals(userName, comment.userName) && Objects.equals(articleUrl, comment.articleUrl) && Objects.equals(parentName, comment.parentName) && Objects.equals(auditStatus, comment.auditStatus);
//    }
//
//    @Override
//    public int hashCode() {
//        return Objects.hash(id, content, createTime, userName, articleUrl, parentName, auditStatus);
//    }
}
